function showmsg(msg, color, callback) {
	if (!document.getElementById("popup_info")) {
		var str = '<div class="popup" id="popup_con"><p id="popup_info"></p></div>';
		$(document.body).append($(str));
	}
	
	$("#popup_info").text(msg).css("color", color).prepend($('<span id="popup_icon"></span>'));
	$("#popup_con").css({"border-color": color, "box-shadow": "0px 0px 10px " + color});
	let url = 'info.png';
	if (color == "red") {
		url = 'error.png';
	} else if (color == "green") {
		url = 'success.png';
	} else if (color == "yellow") {
		url = 'warning.png';
	}
	$("#popup_icon").css("background-image", "url('/icon/" + url + "')");
	$('#popup_con').fadeIn('fast', function() {
		setTimeout(function(){
			$('#popup_con').fadeOut('fast', callback);	
		}, 2000);
	});
}